package mysensornetwork.simulations;

import org.mixim.base.connectionManager.ConnectionManager;
import org.mixim.base.modules.BaseWorldUtility;
import mysensornetwork.src.utility.*;


network WSN
{
    parameters:
        double playgroundSizeX @unit(m); // x size of the area the nodes are in (in meters)
        double playgroundSizeY @unit(m); // y size of the area the nodes are in (in meters)
        double playgroundSizeZ @unit(m); // z size of the area the nodes are in (in meters)
        double numHosts; // total number of hosts in the network

        @display("bgb=$playgroundSizeX,$playgroundSizeY,white,,;bgp=10,50");
    submodules:
        world: WSNWorldUtilityStats {
            parameters:
                playgroundSizeX = playgroundSizeX;
                playgroundSizeY = playgroundSizeY;
                playgroundSizeZ = playgroundSizeZ;
                @display("p=100,46;i=misc/globe");

        }
        connectionManager: ConnectionManager {
            parameters:
                @display("p=199,46;b=42,42,rect,yellow;i=abstract/multicast");

        }
        node[numHosts]: PhyMacHost {
            parameters:
                numHosts = numHosts;
                @display("p=50,133;b=42,42,rect,yellow;i=misc/node2_vs,#f49600,100;is=vs");

        }
    connections allowunconnected:
                         // all connections and gates are to be generated dynamically

}

